<div id="msg"></div>
<form method="post" action="<?php echo $this->url(array('action'=>'index2')) ?>" id="formConfig">
	<input type="hidden" name="act" value="checkconnection" />
	<table id="dbconnection">
		<tr>
			<td colspan="3">Database Connection</td>
		</tr>
		<tr>
			<td>Admin Path</td>
			<td>:</td>
			<td><input type="text" name="adminpath" value="<?php echo $this->escape($this->config['adminpath']) ?>" /></td>
		</tr>
		<tr>
			<td>Host</td>
			<td>:</td>
			<td><input type="text" name="db_host" value="<?php echo $this->escape($this->config['db_host']) ?>" /></td>
		</tr>
		<tr>
			<td>Username</td>
			<td>:</td>
			<td><input type="text" name="db_username" value="<?php echo $this->escape($this->config['db_username']) ?>" /></td>
		</tr>
		<tr>
			<td>Password</td>
			<td>:</td>
			<td><input type="password" name="db_password" value="<?php echo $this->escape($this->config['db_password']) ?>" /></td>
		</tr>
		<tr>
			<td>DB Name</td>
			<td>:</td>
			<td>
				<input type="text" name="db_dbname" value="<?php echo $this->escape($this->config['db_dbname']) ?>" /><br />
				<input type="checkbox" name="db_create" value="1" /> create/overwrite database
			</td>
		</tr>
		<tr>
			<td colspan="3">
				<input type="submit" value="Submit" />
			</td>
		</tr>
	</table>
</form>